import request from "@/utils/request";

//获取知识产权列表
export function getIntellectualProperty(params) {
    return request({
      url: "/kjy/intellectual-property/list",
      method: "get",
      params: params
    });
}
//获取自己知识产权列表
export function getMyIntellectualProperty() {
  return request({
    url: "/kjy/intellectual-property/listByUserId",
    method: "get"
  });
}

//增加知识产权
export function addInfo(data) {
  return request({
    url: "/kjy/intellectual-property",
    method: "post",
    data: data
  });
}

//修改知识产权
export function updateInfo(data) {
  return request({
    url: "/kjy/intellectual-property",
    method: "put",
    data: data
  });
}

//删除知识产权
export function delInfo(id) {
  return request({
    url: "/kjy/intellectual-property/" + id,
    method: "delete"
  });
}

//获取专利类型
export function getPatentType() {
  return request({
    url: "/system/dict/data/type/enterprise_activity",
    method: "get"
  });
}